package cn.simple.run;

import cn.hutool.json.JSON;
import cn.hutool.json.JSONUtil;
import cn.simple.http.HttpRequest;
import com.intellij.execution.configurations.RunConfigurationOptions;
import com.intellij.openapi.components.StoredProperty;

public class SimpleRunConfigurationOptions extends RunConfigurationOptions {

    private final StoredProperty<HttpRequest> httpRequest = property(new HttpRequest(null, null), t -> true).provideDelegate(this, "httpRequest");

    public HttpRequest getHttpRequest() {
        return httpRequest.getValue(this);
    }

    public void setHttpRequest(HttpRequest httpRequest) {
        this.httpRequest.setValue(this, httpRequest);
    }
}
